package com.noreply.demo.yml;

import lombok.Data;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @author noreply
 * @description
 * @datetime 2021/10/8 11:00
 */
@ToString
@Data
@ConfigurationProperties(prefix = "person")
@Configuration
public class Person {
    private String name;
    private int age;
    private String address;
    private List<Integer> arr;
    private Map<String, Object> friend;
    // 引入一个外部类
    private Son son;
    private Set<String> label;


}
